{extend name='main'}

{block name="button"}
<!--{if auth("add")}-->
<!--<button data-modal='{:url("add")}' data-title="添加设备" class='layui-btn layui-btn-sm layui-btn-primary'>添加设备</button>-->
<!--{/if}-->
{/block}

{block name="content"}
<div class="think-box-shadow">
    {include file='patrol_shop/index_search'}
    <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='text-left nowrap'>序号</th>
            <th class='text-left nowrap'>门店名称</th>
            <th class='text-left nowrap'>设备ID</th>
            <th class='text-left nowrap'>通道ID</th>
            <th class='text-left nowrap'>图片</th>
            <th class='text-left nowrap'>当前员工名称</th>
            <th class='text-left nowrap'>状态</th>
            <th class='text-left nowrap'>巡店时间</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {volist name="list" id="vo" key='key'}
        <tr data-dbclick>
            <td class='text-left nowrap'>{$key+(input('page',1)-1)*input('limit',10)}</td>
            <td class='text-left nowrap'>{$vo.shop_name|default='-'}</td>
            <td class='text-left nowrap'>{$vo.equip_id|default='-'}</td>
            <td class='text-left nowrap'>{$vo.channel_id|default='-'}</td>
            <td class='text-left nowrap'>
                {empty name='vo.inspection_picture'}
                暂无图片
                {else}
                <img data-tips-image="" src="{$vo.inspection_picture|default=''}" alt="" width="60px" height="60px">
                {/empty}
            </td>
            <td class='text-left nowrap'>{$vo.shop_clerks_name|default='-'}</td>
            <td class='text-left nowrap'>
                <span style="" {eq name='$vo.status' value='1' } class="color-green" {else} class="color-red"
                      {/eq}>{$vo.status_title}</span>
            </td>
            <td class='text-left nowrap'>{:date('Y-m-d H:i:s',$vo['inspection_time'])}</td>
        </tr>
        {/volist}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}